//accepted 
#include <cstdio>
int t, x, y;
int main(){
	//freopen("in.txt","r",stdin);//freopen("out.txt","w",stdout);
	scanf("%d", &t);
	while(t--){
		scanf("%d%d", &x, &y);
		if(x>y)printf(">\n");
		else if(x<y)printf("<\n");
		else printf("=\n");
	}
	
	return 0;
}
